import http from '../../utils/httpclient.js'
const types = ["BeforeRequest", "Requested", "RequestError"];
// export function toLogin(username, password){
//     return {
//         types: ['a', 'b', 'c'],
//         path: 'pro/fetchAllProducts',
//         method: 'get',
//         query: {username, password}
//     }
// }

// export function getCode(){
//     return {
//         types: ['getCode1', 'getCode2', 'getCode3']
//     }
// }
export function  Init(api,params){
     return {
         type: types,
         url:  api,
         method:'get',
         data: params
     }
}
